-- GENERATED SPELL FOR [Riverpaw Scout] --


function spell0_500(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_500', 640, 1)
end

function Sorts_500(pUnit, Event)
local choix_sorts_500 = math.random(0, 0)
if choix_sorts_500 == 0 then
pUnit:RegisterEvent('spell0_500', 1, 1)
end
end

function mob500_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_500', math.random(1500, 3000), 1)
end

function mob500_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob500_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob500_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(500, 1, 'mob500_Action')
RegisterUnitEvent(500, 2, 'mob500_Leave')
RegisterUnitEvent(500, 3, 'mob500_Kill')
RegisterUnitEvent(500, 4, 'mob500_Die')
